<!doctype html>
<html>
  <!--
    Copyright Facebook Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
  -->
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta name="viewport"
          content="initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
    <meta name="keywords"
          content="javascript, facebook, connect, library, share, publish, stream, api, json, fql">
    <meta name="description"
          content="JavaScript library to use Facebook Connect on your site.">
    <title>Connect JavaScript - Console</title>
    <link type="text/css" rel="stylesheet" href="console.css">


    <style>
      #sortable1, 
	  #sortable2 { list-style-type: decimal; margin: 50; padding: 50; float: left; margin-right: 50px; width: 350px; border: solid; border-color: #EEEEEE; clear: right;}
      #sortable1 li, #sortable2  li { margin: 50 8px 8px 8px; padding: 8px; font-size: 1.2em; width: 150px; }
    </style>

  </head>
  <body>

    <h1>Prueba</h1>

    <div id="controls">
      <div id="info"></div>
    </div>

    <div class="demo">

            <ul id="sortable1" class="connectedSortable">
              Amigos
            </ul>
            
            <ul id="sortable2" class="connectedSortable">
              Rank interesting profiles
            </ul>
      </table>
    </div>

    <div id="fb-root"></div>
    
    <script src="http://connect.facebook.net/en_US/all.js"></script>
    <script src="console.js"></script>
    <script src="jquery-1.7.1.js"></script>
    <script src="jquery-ui-1.8.16.custom.min.js"></script>
    
    <script>

      //jquery-ui
      $(function() {
        $( "#sortable1, #sortable2" ).sortable({
          connectWith: ".connectedSortable"
        }).enableSelection();
      });

      // init
      FB.init({
        apiKey: '102201873231525', // app de fer
        //apiKey: '310121555681921', // app de midra
        cookie: true, status:true, xfbml:true 
      });

      friendsList()
    </script>
  </body>
</html>
